package com.ithuaxin.identifier;

import java.util.Scanner;

public class Test19 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a = sc.nextInt();
        System.out.println("请输入第二个整数");
        int b = sc.nextInt();
        int i = 0;
        while (a>=b){
            a=a-b;
            i++;
        }
        System.out.println("商是"+i);
        System.out.println("余是"+a);
    }


}
